<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/custom-html.tld" prefix="chtml" %>

<%@ page  import="com.erp.framework.util.CommonUtil" %>
<%@ page import="com.erp.app.common.ProjectConstants"%>
<%@ page import="com.erp.app.catalog.login.web.CategoryItemCategoryRow"%>
<%@ page import="com.erp.app.catalog.login.web.CategoryItemClassRow"%>
<%@ page import="com.erp.app.catalog.login.web.CatalogLoginAction"%>
<%@ page import="com.erp.app.catalog.category.vo.CategoryItemLineVO"%>
<%@ page import="com.erp.app.catalog.category.vo.CategoryItemCategoryVO"%>
<%@ page import="com.erp.app.catalog.category.vo.CategoryItemClassVO"%>

<%@ page  import="java.util.ArrayList" %>
<%@ page import="java.util.Hashtable"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Iterator"%>

<%@ page  import="java.math.BigDecimal" %>
<%@ page  import="java.util.Iterator" %>

<%@ page  import="java.net.URLEncoder" %>

<meta http-equiv="Content-Type" content="text/html; charset=big5">
<link rel="stylesheet" href="stylesheet/style1.css" type="text/css">
<link href="<%= request.getContextPath()%>/css/catalogCss/global.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath()%>/css/catalogCss/buttons.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath()%>/css/catalogCss/forms.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath()%>/css/catalogCss/tables.css" rel="stylesheet" type="text/css" />


<jsp:useBean id="catalogLoginForm" scope="session" type="com.erp.app.catalog.login.web.CatalogLoginForm" />



<logic:present  name="catalogLoginForm" property="categoryItemLineVos">
	<logic:iterate id="itemLineVo" name="catalogLoginForm" property="categoryItemLineVos" indexId="idx"  type="com.erp.app.catalog.category.vo.CategoryItemLineVO">
		<%=(idx.intValue()<(int)Math.ceil(catalogLoginForm.getCategoryItemLineVos().size()*1.0/2))?"<div id='block_left'>":"<div id='block_right'>"%>
			<div id="s1nav">			
		    <ul>
				<li>
				  <div>
						<a onclick="javascript:doSubmit('<%=CatalogLoginAction.ACTION_SEARCH_EXTRA%>','<%=itemLineVo.getItemLine()%>');"   href="#" >
							<bean:write name="itemLineVo" property="itemLineDesc"/>
						</a>
					</div>
				</li>
			<logic:iterate id="itemCategoryVo" name="itemLineVo" property="itemCategoryVos" indexId="subIdx"  type="com.erp.app.catalog.category.vo.CategoryItemCategoryVO">
				<div id="s1nav2">
				<ul>
              		<li>
              		  <div>
						<a onclick="javascript:doSubmit('<%=CatalogLoginAction.ACTION_SEARCH_EXTRA%>','<%=itemCategoryVo.getItemCategory()%>');" href="#" >
							<bean:write name="itemCategoryVo" property="categoryItemCategoryDesc"/>
						</a>
						</div>
              		</li>
		    	</ul>
				</div>
					<logic:iterate id="itemClassVo" name="itemCategoryVo" property="itemClassVos" indexId="subDtlIdx"  type="com.erp.app.catalog.category.vo.CategoryItemClassVO">					
				<div id="s1nav3">
				<ul>
              		<li>
              		  <div>
						<a onclick="javascript:doSubmit('<%=CatalogLoginAction.ACTION_SEARCH_EXTRA%>','<%=itemClassVo.getItemClass()%>');" href="#" >
							<bean:write name="itemClassVo" property="classItemClassDesc"/>
						</a>
						</div>
              		</li>
		    	</ul>
				</div>
					</logic:iterate>

			</logic:iterate>
			</ul>
	    </div> 
	</div>
	</logic:iterate>
</logic:present>	
